package com.sunwayworld.basemodule.common.editrecord.resource;

import com.sunwayworld.basemodule.common.editrecord.bean.LimsEditRecordBean;
import com.sunwayworld.basemodule.common.editrecord.service.LimsEditRecordService;
import com.sunwayworld.framework.data.page.Page;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;
import com.sunwayworld.framework.support.base.resource.GenericResource;
import com.sunwayworld.framework.support.choosable.resource.GenericChoosableResource;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@RequestMapping("/secure/baseline/business/edit-records")
public interface LimsEditRecordResource extends GenericResource<LimsEditRecordService, LimsEditRecordBean, Long>, GenericChoosableResource<LimsEditRecordService, LimsEditRecordBean, Long> {
    @RequestMapping(value = {"/{orderTaskId}"}, method = {RequestMethod.POST})
    Page<LimsEditRecordBean> selectLimsEditRecordsByOrderTaskId(@PathVariable Long orderTaskId, RestJsonWrapperBean wrapperBean);
}
